<?php
echo $this->adminToolBar('user', 'index', '/admin/user/adduser/', '/admin/user/edituser/', '/admin/user/deleteuser/', '');
?>
<div class="mid-content">
    <table class="box-table-a" border="0" width="100%">
        <tr>
        	<th scope="col" width="3%">&nbsp;</th>
            <th scope="col" width="3%">#</th>
        	<th scope="col" width="15%">Nickname</th>
        	<th scope="col" width="15%">First Name</th>
        	<th scope="col" width="15%">Last Name</th>
        	<th scope="col" width="20%">Email</th>
        	<th scope="col" width="15%">Member Since</th>
        	<th scope="col" width="15%">Login Status</th>
        	<th scope="col" width="5%">Status</th>
        	<th scope="col" width="3%">&nbsp;</th>
        	<th scope="col" width="3%">&nbsp;</th>
        </tr>

<?php
foreach($this->view_users as $users_entry) :?>
<tr>
    <td><input type="checkbox" name="selector[]" id="selector" value="<?php echo $users_entry['userid']; ?>" /></td>
    <td><?php echo $users_entry['userid'];?></td>
    <td><?php echo $users_entry['nickname'];?></td>
    <td><?php echo $users_entry['firstname'];?></td>
    <td><?php echo $users_entry['lastname'];?></td>
    <td><?php echo $users_entry['email_address'];?></td>
    <td><?php echo $users_entry['date_created'];?></td>
    <td><?php echo $users_entry['is_login'];?></td>
    <td><?php echo $users_entry['status'];?></td>
    <td><a href="javascript: void(0);" onclick="loadPage('/admin/user/edituser/userid/<?php echo $users_entry['userid']; ?>');" title="Edit"><img src="/images/admin/icons/edit.gif" alt=""/></a></td>
    <td><a href="javascript: void(0);" onclick="deleteUser('<?php echo $users_entry['userid']; ?>');" title="Delete"><img src="/images/admin/icons/disable.gif" alt=""/></a></td> 
</tr>
<?php endforeach; ?>
</table>